package com.deluxelx.soul.inn.common.constant;

import cn.hutool.core.util.StrUtil;

/**
 * 搜索历史常数类
 *
 * @author liaozihao
 * @date 2024-04-28 11:19
 */
public class HistoryConstant {

    public static final String HISTORY_CACHE = "historyCache";

    public static final String historyTaskPattern = "historyCache:*";

    public static String buildHistoryKey(String userId) {
        return HISTORY_CACHE + StrUtil.COLON + userId;
    }

}
